/**
 * 
 */
package com.wzz.common.callrecord;

import android.content.Context;
import android.content.Intent;

/**
 * @author 郝清芳
 * 
 */
public class CallControl {

  private static CallControl instance;

  private CallControl() {
  }

  public static synchronized CallControl getInstance() {
    if (instance == null)
      instance = new CallControl();
    return instance;
  }

  public void doStart(Context context) {
    Intent serviceIntent = new Intent(context, CallRecordService.class);
    context.startService(serviceIntent);
  }

  public void doStop(Context context) {
    Intent serviceIntent = new Intent(context, CallRecordService.class);
    context.stopService(serviceIntent);
  }
}
